<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>axios</title>
</head>
<body>
<script src="js/axios.min.js"></script>
<script>
    /*axios({
        method: "get",
        url: "http://localhost:8080/ajax/axios?username=admin"
    }).then(function (resp){
        alert(resp.data);
    })*/

    axios.post("http://localhost:8080/ajax/axios", "username=root").then(function (resp){
        alert(resp.data)
    })
</script>
</body>
</html>